<template>
  <div id="navshopcart">
    <navbar class="nav-bar">
      <div slot="center">购物车({{length}})</div>
    </navbar>
  </div>
</template>

<script>
import { mapGetters } from "vuex";
import navbar from "components/common/navbar/navbar";

export default {
  name: "navshopcart",
  components: {
    navbar
  },
  computed: {
    ...mapGetters({
      length: "clothcount",
      cartlist:"cartlist"
    })
  }
};
</script>

<style>
.nav-bar {
  background-color: var(--color-tint);
  font-weight: 700;
  color: #fff;
}
</style>